<template>
    <div>
        <v-SecondTable
            v-if="load"
            :bar="unit"
            :head="TableHeader"
            :body="TableData"
        ></v-SecondTable>
    </div>
</template>

<script>
import { defineComponent } from '@vue/composition-api'
import SecondTable from './children/SecondTable'

export default defineComponent({
    setup() {
        
    },
    components: {
        'v-SecondTable': SecondTable
    },
    data(){
        return {
            valid: false,
            username: '',
            password: '',
            nameRules: [
                v => !!v || 'Name is required',
                v => v.length <= 10 || 'Name must be less than 10 characters',
            ],
            load: true,
            unit: { class: '#6AE7C4FF', title: 'JIRA任务信息汇总展示',  priority: '重要且紧急', height: '700px', display: true, params: {'origin': 'person'} },
            TableHeader: [
                { text: '状态', value: 'status', align: 'start' },
                {
                    text: 'JIRA编号',
                    sortable: false,
                    value: 'taskName',
                },
                { text: '简要描述', value: 'content' },
                { text: '责任人', value: 'executor' },
                // { text: '关注者', value: 'followers' },
                { text: '优先级', value: 'priority' },
                { text: '创建时间', value: 'startDate' },
                { text: '修复时间', value: 'endDate' },
                // { text: '预警天数', value: 'result' },
                // { text: '次轮预警', value: 'cycle' },
                // { text: '任务链接', value: 'link', sortable: false },
                // { text: '任务附件', value: 'attachment', sortable: false, },
                { text: '提醒方式', value: 'tipType', sortable: false, },
                { text: '操作', value: 'actions', sortable: false },
            ],
            TableData: []
        }
    },
    mounted(){
        this.$emit("changeTaskID", 4)
        
    },
    methods: {
    }
})
</script>


<style scoped>

</style>